package com.hhxy.service.impl;

import com.hhxy.entity.Item;
import com.hhxy.mapper.ItemMapper;
import com.hhxy.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemServiceImpl implements ItemService {

    @Autowired
    private ItemMapper itemMapper;
    @Override
    public List<Item> qeuryAllItem() {
        return itemMapper.qeuryAllItem();
    }

    @Override
    public Item qeuryById(Integer id) {
        return itemMapper.qeuryById(id);
    }

    @Override
    public void saveItem(Item item) {
        itemMapper.saveItem(item);
    }

    @Override
    public void updateItem(Item item) {
        itemMapper.updateItem(item);
    }

    @Override
    public void deleteItem(Integer id) {
        itemMapper.deleteItem(id);
    }

}